﻿using UnityEngine;
using UnityEngine.UI;

namespace LocalizationUtils.Example
{
    public class LocalizationUGUI_InputFieldExample : MonoBehaviour
    {
        public InputField _inputChat_ChatInputField;


        //换行
        private void OnClickSend()
        {
            string chatStr = _inputChat_ChatInputField.text;
            if (string.IsNullOrEmpty(chatStr))
            {
                return;
            }

            var arabicComp = _inputChat_ChatInputField.GetComponent<LocalizationUGUI_InputField>();
            if (string.IsNullOrEmpty(arabicComp._srcTxt))
            {
                arabicComp.CopyText();
                arabicComp.CorrectText();
            }
        }
    }
}